package cn.liangxxhu.rocketmq.exception;

import lombok.Getter;

@Getter
public class EsException extends RuntimeException {
    private final int code;
    
    public EsException(String message) {
        super(message);
        this.code = 500;
    }
    
    public EsException(String message, int code) {
        super(message);
        this.code = code;
    }
    
    public EsException(String message, Throwable cause) {
        super(message, cause);
        this.code = 500;
    }
}
